package com.bus.admin.bean;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 站点信息
 * </p>
 *
 * @author 张子艺
 * @since 2020-04-01
 */
@TableName("tr_station_info_lansi")
@ApiModel(value="StationInfoLansi对象", description="站点信息")
public class StationInfoLansi extends Model<StationInfoLansi> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "站点编号")
    @TableField("station_index")
    private String stationIndex;

    @ApiModelProperty(value = "站点id")
    @TableField("station_id")
    private String stationId;

    @ApiModelProperty(value = "纬度")
    @TableField("longitude")
    private BigDecimal longitude;

    @ApiModelProperty(value = "经度")
    @TableField("latitude")
    private BigDecimal latitude;

    @ApiModelProperty(value = "线路id")
    @TableField("route_id")
    private String routeId;

    @ApiModelProperty(value = "站点名称")
    @TableField("station_name")
    private String stationName;

    @ApiModelProperty(value = "上下行")
    @TableField("up_down")
    private String upDown;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getStationIndex() {
        return stationIndex;
    }

    public void setStationIndex(String stationIndex) {
        this.stationIndex = stationIndex;
    }
    public String getStationId() {
        return stationId;
    }

    public void setStationId(String stationId) {
        this.stationId = stationId;
    }
    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }
    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }
    public String getRouteId() {
        return routeId;
    }

    public void setRouteId(String routeId) {
        this.routeId = routeId;
    }
    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }
    public String getUpDown() {
        return upDown;
    }

    public void setUpDown(String upDown) {
        this.upDown = upDown;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StationInfoLansi{" +
            "id=" + id +
            ", stationIndex=" + stationIndex +
            ", stationId=" + stationId +
            ", longitude=" + longitude +
            ", latitude=" + latitude +
            ", routeId=" + routeId +
            ", stationName=" + stationName +
            ", upDown=" + upDown +
        "}";
    }
}
